package main

import (
	_ "gitee.com/hexug/vblog/tree/master/api/apps/all"
	"gitee.com/hexug/vblog/tree/master/api/cmd"
)

func main() {
	//conf.LoadConfigFromToml("etc/config.toml")
	//conf.LoadConfigFromEnv()
	//logger.L().Infoln("配置读取完成。")
	//apps.InitApps()
	//logger.L().Infoln("app初始化完成")
	////gin.SetMode(gin.ReleaseMode)
	//engine := gin.Default()
	//router := engine.Group("/vblog/api/v1")
	//apps.InitApis(router)
	//svc := conf.C().Server
	//engine.Run(fmt.Sprintf("%s:%d", svc.Host, svc.Port))
	cmd.Execute()
}
